package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 交易记录对象 transaction_logs
 * 
 * @author ruoyi
 * @date 2024-09-25
 */
public class TransactionLogs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 交易id */
    private Long id;

    /** 相关支付id */
    @Excel(name = "相关支付id")
    private Long relatedPayId;

    /** 相关退款id */
    @Excel(name = "相关退款id")
    private Long relatedRefundId;

    /** 交易类型 */
    @Excel(name = "交易类型")
    private String tranType;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private Long amount;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tranDate;

    /** 交易状态 */
    @Excel(name = "交易状态")
    private String tranStatus;

    /** 交易描述 */
    @Excel(name = "交易描述")
    private String tranDescription;

    /** 交易记录信息 */
    @Excel(name = "交易记录信息")
    private Long columnName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRelatedPayId(Long relatedPayId) 
    {
        this.relatedPayId = relatedPayId;
    }

    public Long getRelatedPayId() 
    {
        return relatedPayId;
    }
    public void setRelatedRefundId(Long relatedRefundId) 
    {
        this.relatedRefundId = relatedRefundId;
    }

    public Long getRelatedRefundId() 
    {
        return relatedRefundId;
    }
    public void setTranType(String tranType) 
    {
        this.tranType = tranType;
    }

    public String getTranType() 
    {
        return tranType;
    }
    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }
    public void setTranDate(Date tranDate) 
    {
        this.tranDate = tranDate;
    }

    public Date getTranDate() 
    {
        return tranDate;
    }
    public void setTranStatus(String tranStatus) 
    {
        this.tranStatus = tranStatus;
    }

    public String getTranStatus() 
    {
        return tranStatus;
    }
    public void setTranDescription(String tranDescription) 
    {
        this.tranDescription = tranDescription;
    }

    public String getTranDescription() 
    {
        return tranDescription;
    }
    public void setColumnName(Long columnName) 
    {
        this.columnName = columnName;
    }

    public Long getColumnName() 
    {
        return columnName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("relatedPayId", getRelatedPayId())
            .append("relatedRefundId", getRelatedRefundId())
            .append("tranType", getTranType())
            .append("amount", getAmount())
            .append("tranDate", getTranDate())
            .append("tranStatus", getTranStatus())
            .append("tranDescription", getTranDescription())
            .append("columnName", getColumnName())
            .toString();
    }
}
